package cn.gdut.chengcai.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gdut.chengcai.dao.CourseInfoDao;
import cn.gdut.chengcai.entity.CourseInfo;
import cn.gdut.chengcai.entity.CourseInfoExample;
import cn.gdut.chengcai.service.CourseInfoService;

@Transactional
@Service
public class CourseInfoServiceImpl implements CourseInfoService {

	@Autowired
	private CourseInfoDao dao;

	@Override
	public long countByExample(CourseInfoExample example) {
		return this.dao.countByExample(example);
	}

	@Override
	public int deleteByExample(CourseInfoExample example) {
		return this.dao.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {
		return this.dao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CourseInfo record) {
		return this.dao.insert(record);
	}

	@Override
	public int insertSelective(CourseInfo record) {
		return this.dao.insertSelective(record);
	}

	@Override
	public List<CourseInfo> selectByExample(CourseInfoExample example) {
		return this.dao.selectByExample(example);
	}

	@Override
	public CourseInfo selectByPrimaryKey(Long id) {
		return this.dao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(CourseInfo record, CourseInfoExample example) {
		return this.dao.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(CourseInfo record, CourseInfoExample example) {
		return this.dao.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(CourseInfo record) {
		return this.dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CourseInfo record) {
		return this.dao.updateByPrimaryKey(record);
	}

}
